package com.luo.ssm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
 * 文件类
 * @author wys
 *
 */
public class SysFile  {
    private Integer fid;

    private String filename;


    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date fcreatedate;

    private Double fsize;

    private String fcontenttype;

    private String fpath;

    private Integer tid;
    //文件夹名
    private String tname;


    public String getTname() {
		return tname;
	}

	public void setTname(String tname) {
		this.tname = tname;
	}

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String foldname) {
        this.filename = foldname == null ? null : foldname.trim();
    }

    public Date getFcreatedate() {
        return fcreatedate;
    }

    public void setFcreatedate(Date fcreatedate) {
        this.fcreatedate = fcreatedate;
    }

    public Double getFsize() {
        return fsize;
    }

    public void setFsize(Double fsize) {
        this.fsize = fsize;
    }

    public String getFcontenttype() {
        return fcontenttype;
    }

    public void setFcontenttype(String fcontenttype) {
        this.fcontenttype = fcontenttype == null ? null : fcontenttype.trim();
    }

    public String getFpath() {
        return fpath;
    }

    public void setFpath(String fpath) {
        this.fpath = fpath == null ? null : fpath.trim();
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fid=").append(fid);
        sb.append(", filename=").append(filename);
        sb.append(", fcreatedate=").append(fcreatedate);
        sb.append(", fsize=").append(fsize);
        sb.append(", fcontenttype=").append(fcontenttype);
        sb.append(", fpath=").append(fpath);
        sb.append(", tid=").append(tid);
        sb.append("]");
        return sb.toString();
    }
}